export default {
	namespaced: true,
    state: {
        tabIndex: uni.getStorageSync("tabIndex") || 0,
		messageBadge: 12,
		cartBadge: 6,
    },
    mutations: {
        updateTabIndex: function (state, value) {
            state.tabIndex = value
			uni.setStorageSync("tabIndex",value)
        },
		updateMessageBadge: function (state, value) {
		    state.messageBadge = value
		},
		updateCartBadge: function (state, value) {
		    state.cartBadge = value
		},
    },
    getters: {
       
    },
    actions: {
       
    }
}

